home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ffffssssrrrr____eeeeffffssss((((1111MMMM)))) ffffssssrrrr____eeeeffffssss((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- fsr_efs - filesystem reorganizer for EFS
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////uuuussssrrrr////eeeettttcccc////ffffssssrrrr____eeeeffffssss [----ssss] [----vvvv] [----gggg] [----MMMM] [----tttt seconds] [----ffff leftoff] [----mmmm mtab]
- ////uuuussssrrrr////eeeettttcccc////ffffssssrrrr____eeeeffffssss [----ssss] [----vvvv] [----gggg] [----MMMM] [efsdev | dir | file] ...
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _f_s_r__e_f_s is applicable only to EFS filesystems.
-
- _f_s_r__e_f_s improves the organization of mounted filesystems. The
- reorganization algorithm operates on one file at a time, compacting or
- otherwise improving the layout of the file extents (contiguous blocks of
- file data) while simultaneously compacting the filesystem free space.
-
- The following options are accepted by _f_s_r__e_f_s. The ----mmmm, ----tttt, and ----ffff
- options have no meaning if any filesystems, directories, or files are
- specified on the command line.
-
- ----mmmm _m_t_a_b Use this file for the list of filesystems to reorganize.
- The default is to use /_e_t_c/_m_t_a_b. This file must be in
- _m_t_a_b(4) format.
-
- ----tttt _s_e_c_o_n_d_s How long to reorganize. The default is 7200 (2 hours).
-
- ----ffff _l_e_f_t_o_f_f Use this file instead of /_v_a_r/_t_m_p/._f_s_r_l_a_s_t to read the state
- of where to start and as the file to store the state of
- where reorganization left off.
-
- ----MMMM Reorganize only the metadata.
-
- ----ssss Print fragmentation statistics only. The fragmentation
- percentage reported is 100 divided by the average size of
- contiguous storage in that category (%frag is file data,
- %free is free space). Different files are considered non-
- contiguous.
-
- ----vvvv Verbose. Print cryptic information about each file being
- reorganized.
-
- ----gggg Print all output using _s_y_s_l_o_g(3C). This is the default if
- _f_s_r__e_f_s is not invoked on a tty. If _f_s_r__e_f_s is invoked on a
- tty then output is printed to the tty by default.
-
- The intended usage is to regularly run the _f_s_r command which in turn
- invokes _f_s_r__e_f_s when it encounters EFS filesystems. By default this is
- done from _c_r_o_n_t_a_b once per week.
-
- When invoked with no arguments _f_s_r__e_f_s reorganizes all regular files in
- all mounted filesystems. _f_s_r__e_f_s makes many cycles over /_e_t_c/_m_t_a_b each
- time making a single pass over each filesystem. A pass consists of three
- sub-passes, the first of which organizes the filesystem metadata
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ffffssssrrrr____eeeeffffssss((((1111MMMM)))) ffffssssrrrr____eeeeffffssss((((1111MMMM))))
-
-
-
- (directories and indirect extents) to improve _f_s_c_k performance, the
- second of which compacts files to improve performance, and the last of
- which de-fragments filesystem free space. The first _f_s_r__e_f_s pass in this
- mode does only the first sub-pass. It runs for up to two hours after
- which it records the filesystem where it left off, so it can start there
- the next time. This information is stored in the file /_v_a_r/_t_m_p/._f_s_r_l_a_s_t.
- If the information found here is somehow inconsistent or out of date it
- is ignored and reorganization starts at the beginning of the first
- filesystem found in /_e_t_c/_m_t_a_b.
-
- _f_s_r__e_f_s can be called with one or more arguments naming filesystems
- (block or character device name), directory hierarchies, and files to
- reorganize. In this mode _f_s_r__e_f_s does not read or write
- /_v_a_r/_t_m_p/._f_s_r_l_a_s_t nor does it run for a fixed time interval. It makes
- one pass through each specified regular file, all regular files in each
- specified filesystem and all regular files in each specified directory
- hierarchy. When descending a directory hierarchy _f_s_r__e_f_s reorganizes
- each regular file before descending into subdirectories. A command line
- name referring to a symbolic link (except to a file system device), FIFO,
- or UNIX domain socket generates a warning message, but is otherwise
- ignored. While traversing the filesystem or directory hierarchy these
- types of files are silently skipped.
-
- FFFFIIIILLLLEEEESSSS
- /etc/mtab contains default list of filesystems to reorganize.
- /var/tmp/.fsrlast records the state where reorganization left off.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- fsr(1M), crontab(1), fsck(1M), mkfs(1M), ncheck(1M), efs(4), fsctl(7).
-
- NNNNOOOOTTTTEEEESSSS
- An entry in /_e_t_c/_m_t_a_b or the file specified using the ----mmmm option must have
- the rrrrwwww option specified, for example:
-
- /dev/root / efs rw 0 0
-
- If this option is not present, then _f_s_r__e_f_s skips the filesystem
- described by that line. If this option is not present, make sure that it
- is present in the corresponding line in /_e_t_c/_f_s_t_a_b so that it will appear
- in /_e_t_c/_m_t_a_b when the filesystem is mounted. See the _f_s_t_a_b(4) and
- _m_t_a_b(4) reference pages for more details.
-
- _f_s_r__e_f_s is a memory intensive program, and consumes memory proportional
- to the number of file and directory inodes in the largest filesystem in
- the system. Running _f_s_r__e_f_s on a filesystem with 500,000 inodes, for
- example, can require 40 to 50 megabytes of main memory.
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-